# CMakeLists.txt
cmake_minimum_required(VERSION 3.8)

project(cmake_example VERSION 1.0.0)

set(SRCDIR $(pwd))

# set(CMAKE_C_COMPILER "arm-linux-gcc")
# set(CMAKE_CXX_COMPILER "arm-linux-g++")
set(CMAKE_C_FLAGS "-Wl,-rpath=/IOT/lib")

include_directories($(SRCDIR)/include/)
include_directories(/home/gec/Downloads/build/include)
link_directories($(SRCDIR)/lib/)
link_directories(/home/gec/Downloads/build/lib)

add_executable(main main.c)
target_link_libraries(main bmp jpg)

add_subdirectory(lib/)